package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {

    void saveDepartment(Map<String, Object> paramMap);

    Page<Department> findDepartmentPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);

    void removeDepartmentByHashcodeAndDecade(String hoscode, String depcode);

    /**
     * 查询医院所有科室列表
     * @param hoscode
     * @return
     */
    List<DepartmentVo> getDepartmentListByHoscode(String hoscode);

    String getDepNameByHoscodeAndDepcode(String hoscode, String depcode);

    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
